﻿using System.Web;
using System.Web.Optimization;

namespace DiarySocial
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            //bundles.Add(new ScriptBundle("~/bundles/diary").Include(
            //    "~/Scripts/jquery-{version}.js",
            //    "~/Scripts/bootstrap.js"));

            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));
            bundles.Add(new ScriptBundle("~/bundles/angularjs").Include(
                "~/Scripts/angular.js"));
            bundles.Add(new ScriptBundle("~/bundles/knockout").Include(
                "~/Scripts/knockout-{version}.js",
                "~/Scripts/knockout.mapping-latest.js"
                ));

            //bundles.Add(new ScriptBundle("~/bundles/bootstrapjs").Include(
            //            "~/Scripts/bootstrap.js"));

            bundles.Add(new ScriptBundle("~/bundles/scale").Include(
                "~/Scripts/bootstrap.js",
                "~/Scripts/app.js",
                "~/Scripts/slimscroll/jquery.slimscroll.js",
                "~/Scripts/app.plugin.js",
                "~/Scripts/diary.js"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrapval").Include(
                        "~/Scripts/jquery.validate.js",
                        "~/Scripts/jquery.validate.unobtrusive.js",
                        "~/Scripts/jquery.validate.unobtrusive.bootstrap.js",
                        "~/Scripts/jquery.unobtrusive-ajax.js"));

            bundles.Add(new ScriptBundle("~/bundles/wysiwyg").Include(
                "~/Scripts/wysiwyg/jquery.hotkeys.js",
                "~/Scripts/wysiwyg/bootstrap-wysiwyg.js",
                "~/Scripts/wysiwyg/demo.js"));

            bundles.Add(new ScriptBundle("~/bundles/nestable").Include(
                "~/Scripts/nestable/jquery.nestable.js"));
            bundles.Add(new StyleBundle("~/Content/themes/scale/nestable").Include(
                "~/Scripts/nestable/nestable.css"));

            //bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
            //            "~/Scripts/jquery.unobtrusive*",
            //            "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));
            // IE9 Support for bootstrap
            bundles.Add(new ScriptBundle("~/bundles/iesupport").Include(
                "~/Scripts/ie/*.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));

            //bundles.Add(new StyleBundle("~/Content/bootstrapcss").Include(
            //    "~/Content/bootstrap.css",
            //    "~/Content/bootstrap-theme.css"));

            bundles.Add(new StyleBundle("~/Content/themes/scale/css").Include(
                "~/Content/themes/scale/bootstrap.css",
                "~/Content/themes/scale/animate.css",
                "~/Content/themes/scale/font-awesome.css",
                "~/Content/themes/scale/icon.css",
                "~/Content/themes/scale/font.css",
                "~/Content/themes/scale/app.css"));
        }
    }
}